const mongoose = require('mongoose')

mongoose.connect('mongodb://127.0.0.1:27017/img-pro', { useNewUrlParser: true })

const WechatUser = mongoose.model('Wechat-user', new mongoose.Schema({
  openid: { type: String },
  nickname: { type: String }, 
  headimgurl: { type: String },
  token: { type: String },
  filename: { type: String },
  pageid: { type: String },
  result: { type: String }
}))

module.exports = WechatUser

